package shared.pojo

import shared.pojo.Pojo.ValidData
import upickle.default._

/**
 * Created by yz on 13/7/2022
 */
object WechatMember {

  case class PhoneData(phone: String)

  object PhoneData {

    implicit val rw = macroRW[PhoneData]

  }

  case class WechatMemberData(phone: String = "", password: String = "")

  object WechatMemberData {

    implicit val rw = macroRW[WechatMemberData]

  }

  object Add {

    type Request = WechatMemberData

    type Response = ValidData

  }

  object Update {

    type Request = WechatMemberData
    type Response = ValidData

  }

}
